<?
include 'conn.php';
$newId=$_GET['newId'];
$sql="select NewName,author,category,Content from defensesummary WHERE NewsId=$newId";
$result=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($result);
?>

<!DOCTYPE html>
<html>

<head>
    <title>弹出新闻窗口</title>
    <meta charset="UTF-8">
    <script type="text/javascript" src="js/myLayer.js"></script>
    <link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css">
    <link rel="stylesheet" type="text/css" href="css/nav.css">
    <link rel="stylesheet" type="text/css" href="fonts/iconfont.css">

    <link rel="stylesheet" href="css/bootstrap-theme.css" />

    <script type="text/javascript" src="js/jquery.min.js"></script>
    <link rel="stylesheet" href="css/bootstrap-theme.min.css" />
    <link rel="stylesheet" href="css/bootstrap.css" />
    <script type="text/javascript" src="js/bootstrap3.0.3.min.js"></script>
    <style>
        .paneldiv2 {
            padding: 6%;
            float: left;
            width: 100%;
            font-size: 1em;
        }

        .box-inline {
            box-shadow: 0px 2px 2px grey;
        }

    </style>



</head>

<body>

<div style='padding:20px;'>
    <center>
        <h2 style="margin: 20px;"><?=$row[0]?></h2>
        <h5>类别:<?=$row[2]?></h5>
        <h6  style="color:dimgrey">作者：<?=$row[1]?></h6>
    </center>

    <div>
        <p class="panel-body box-inline panel panel-default paneldiv2">
            <?=$row[3]?>
        </p>
    </div>
</div>

</body>

</html>　